package org.obm.lmtp;

import org.obm.lmtp.impl.LmtpServer;
import org.obm.mina.ServiceException;


/**
 * LMTP proxy main class. Should send traffic to multiple registered handlers.
 * 
 * @author tom
 * 
 */
public class LMTPProxyServer {

	public LMTPProxyServer() {
	}

	public void start() {
		try {
			LmtpServer.startupLmtpServer();
		} catch (ServiceException e) {
			e.printStackTrace();
		}
	}

	public void stop() {
		LmtpServer.shutdownLmtpServer();
	}

}
